package com.daxia.ogmall.common;

public enum ProductStatus {
	NotReview(0, "未审核"), 
	Passed(1, "审核通过"),
	Refused(2, "审核不通过");

	private int value;
	private String remark;

	private ProductStatus(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static ProductStatus getByValue(int value) {
		for (ProductStatus o : ProductStatus.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
}
